package cn.liumouren.tool.pac.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Daniel Liu
 * @date 2021/3/4 13:44
 */
public class MapUtil {

    public static Map<String, Object> changeKeyToCase(Map<String, Object> map) {
        Map<String, Object> newMap = new HashMap<>(16);

        for (Map.Entry<String, Object> entry : map.entrySet()) {
            newMap.put(StrUtil.toCamelCase(entry.getKey()), entry.getValue());
        }
        return newMap;
    }
}
